package com.huahua.api.repository.entertainment.website;

import com.huahua.api.entity.entertainment.website.pojo.EntertainmentWebsiteGenerateTemplate;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import org.springframework.stereotype.Repository;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

@Repository
public interface EntertainmentWebsiteGenerateTemplateRepository extends ReactiveCrudRepository<EntertainmentWebsiteGenerateTemplate, Integer> {

    Flux<EntertainmentWebsiteGenerateTemplate> findByType(Integer type);

    Mono<EntertainmentWebsiteGenerateTemplate> findByName(String name);
}
